package com.talent.web.model.convertor;

import com.talent.web.model.dto.SysUserDto;
import com.talent.web.model.entity.SysUser;
import com.talent.web.model.vo.SysUserVo;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserConvertor {

    UserConvertor INSTANCE = Mappers.getMapper( UserConvertor.class );



    SysUserVo poToVo(SysUser user);

    SysUser dtoTPo(SysUserDto dto);


    SysUser update(SysUserDto dto, @MappingTarget SysUser user);

}
